import request from "@/utils/request";

// 查询维保公司用户
export function listWbUserList(query) {
  return request({
    url: "/wb/WbMaintainCompanyUser/list",
    method: "get",
    params: query,
  });
}

// 查看
export function queryWbUser(id) {
  return request({
    url: "/wb/WbMaintainCompanyUser/" + id,
    method: "get",
  });
}

// 新增维保公司用户
export function addWbUser(data) {
  return request({
    url: "/wb/WbMaintainCompanyUser",
    method: "post",
    data,
  });
}

// 删除维保公司用户
export function delWbContract(id) {
  return request({
    url: "/wb/WbMaintainCompanyUser/" + id,
    method: "delete",
  });
}

// 修改维保公司用户
export function editWbUser(data) {
  return request({
    url: "/wb/WbMaintainCompanyUser",
    method: "put",
    data: data,
  });
}



// 查询客户公司用户
export function getCompanyUserList(query) {
  return request({
    url: "/wb/architecture/list",
    method: "get",
    params: query,
  });
}

// 查看详情
export function queryCompanyUser(id) {
  return request({
    url: "/wb/architecture/" + id,
    method: "get",
  });
}

// 新增客户公司用户
export function addCompanyUser(data) {
  return request({
    url: "/wb/architecture",
    method: "post",
    data,
  });
}

// 修改客户公司用户
export function editCompanyUser(data) {
  return request({
    url: "/wb/architecture",
    method: "put",
    data: data,
  });
}

// 删除客户公司用户
export function deleteCompanyUser(id) {
  return request({
    url: "/wb/architecture/" + id,
    method: "delete",
  });
}

// 查看维保公司师傅
export function listCompanyMaster(id) {
  return request({
    url: "/wb/WbMaintainCompanyUser/listWbMaster",
    method: "get",
  });
}

/**重置账户*/
export function resetAccount(data) {
  return request({
    url: "/system/user",
    method: "put",
    data,
  });
}
